package cn.smartgarden.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.smartgarden.service.HttpUtil;
import cn.smartgarden.model.Constants;
@Controller
@RequestMapping("api")
public class ApiController {
@RequestMapping(value="/getBusinessCarportDetail",produces = {"application/json;charset=UTF-8"})
@ResponseBody
public Object getBusinessCarportDetail(@RequestParam("low")int low,@RequestParam("count")int count,@RequestParam("parkId")int parkId){
	String url = Constants.WEBAPIURL+"/getBusinessCarportDetail?low="+low+"&count="+count+"&parkId="+parkId;
	Map<String, Object> result = HttpUtil.get(url);
	return result.get("body");
}
@RequestMapping("/test")
@ResponseBody
public String test(){
return "aa";

}
}
